<template>
    <div class="menu">
        <div class="item" v-for="(item,index) in menuList" :key="index">
            <img :src="item.imgUrl" alt="">
            <span>{{item.title}}</span>
        </div>
        
    </div>
</template>
<script>
export default {
    data(){
        return{
            menuList:[
                {
                    title:'优惠券',
                    imgUrl:'https://i.loli.net/2019/11/06/ieEsQ3gdHhurja9.png',
                    id:1
                },
                {
                    title:'限时抢购',
                    imgUrl:'https://i.loli.net/2019/11/06/JXqI6LmZB2tfvP5.png',
                    id:2
                },
                {
                    title:'联盟推荐',
                    imgUrl:'https://i.loli.net/2019/11/06/tDgiSm4sXMyfRFN.png',
                    id:3
                },
                {
                    title:'我要开店',
                    imgUrl:'https://i.loli.net/2019/11/06/djWeZrw51SK8y69.png',
                    id:4
                }
            ]
        }
    }
}
</script>
<style lang="less" scoped>
.menu{
    display: flex;
    justify-content: space-around;
    
    .item{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.10rem 0;
        img{
            width: calc(109/2*0.01rem);
            height: calc(110/2*0.01rem);
        }
    }
}
</style>